package com.flkin.modules.system.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.flkin.common.base.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @author yanxiang.huang 2020-12-07 22:38:02
 */
@Entity
@Table(name = "user")
@Getter
@Setter
public class User extends BaseEntity {

    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = 1L;


    /** 主键 */
    private Long id;

    /** 用户名 */
    private String username;

    /** 密码 */
    @JsonIgnore
    @JSONField(serialize = false)
    private String password;

    /** 状态 */
    private Integer status;

    /** 创建人 */
    private String createBy;

    /** 修改人 */
    private String updateBy;

    /** 创建时间 */
    private Date createTime;

    /** 修改时间 */
    private Date updateTime;

}
